import { RouteRecordRaw } from "vue-router";
import ForgeLayout from "/@/layout/forge-layout.vue";
import { PageEnum } from "/@/enums/pageEnum";

export const dashboardRouters: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "_dashboard",
    redirect: { name: PageEnum.BASE_HOME_PAGE_NAME },
    component: ForgeLayout,
    children: [
      {
        path: "/dashboard/index",
        name: PageEnum.BASE_HOME_PAGE_NAME,
        meta: {
          title: "首页",
        },
        component: () => import("/@/views/system/dashboard/index.vue"),
      },
    ],
  },
];
